home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
comm
/
term
/
TEXT2SCP.lha
/
text2scp.doc
< prev
next >
Wrap
Text File
|
1993-08-03
|
2KB
|
57 lines
This is a small update to ascii2scp which wouldn't properly handle escape
codes in the source file.
There isn't much to this, so I see no reason to have a long doc file. After
reading complaints on Internet from some people who didn't like doing an
ASCII send to upload their signature files, I decided to crank out this
little program. All it does is take a regular text file and turn it into a
Terminus script file. It ignores the CR characters, and starts a new line
whenever a LF is found. This is normal for Amiga text editors such as CED,
and will also properly convert IBM type text files that end each line with a
CR-LF sequence. For instance, the following text:
This is an example of what the text could be.
It can include the ", \, and ' characters as well,
and text2scp will prepend them with an extra \ so
they are interpreted properly by Terminus.
into:
/* Terminus Script File */
/* Created with TEXT2SCP by Don Lester */
SEND "This is an example of what the text could be.\r"
SEND "It can include the \", \\, and \' characters as well,\r"
SEND "and text2scp will prepend them with an extra \\ so\r"
SEND "they are interpreted properly by Terminus.\r"
/* End of TEXT2SCP script */
Pretty straightforward. The proper usage is to have text2scp somewhere in
your path (or current directory) and type:
text2scp path:textfile path:scriptfile
where textfile is the file you want converted, and scriptfile is the name of
the script file you wish to have created. For instance, if you created a
file called signature.txt in RAM that you wanted to use as a signature, the
following command line would accomplish what you wanted:
text2scp ram:signature.txt terminus:scripts/signature.scp
The output file, signature.scp, can now be assigned to a function key by
going to the pulldown menu [SETTINGS][MACROS] and typing the following for
whichever key you want it assigned to:
!&signature.scp
That is about it. If you wish to contact me for some reason, I can be
reached at:
Internet: dlester@eecs.wsu.edu
Fidonet: 1:344/87 (Don Lester)
Regular Mail (some people still use it): Don Lester
NW 205 Larry #16
Pullman, WA 99163